package com.cyys.modules.wx.model.user.param;

import com.cyys.modules.wx.model.user.WxUserinfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
* @description 
* @author LC
* @date 2020-10-22
*/
@Data
@ApiModel(description= "微信用户注册信息")
public class WxUserinfoRegister {

	@ApiModelProperty(value="openid",required = true)
	private String openId; //微信编号
	@ApiModelProperty(value="微信昵称",required = false)
	private String nickName; //微信昵称
	@ApiModelProperty(value="微信头像地址",required = false)
	private String avatarUrl; //微信头像
	@ApiModelProperty(value="性别",required = false)
	private String gender; //性别
	@ApiModelProperty(value="省",required = false)
	private String province; //省
	@ApiModelProperty(value="市",required = false)
	private String city; //市
	@ApiModelProperty(value="县",required = false)
	private String country; //县

	public WxUserinfo toWxUserinfo(){
		WxUserinfo entity = new WxUserinfo();
		entity.setOpenId(openId);
		entity.setNickName(nickName);
		entity.setAvatarUrl(avatarUrl);
		entity.setGender(gender);
		entity.setProvince(province);
		entity.setCity(city);
		entity.setCountry(country);
		return entity;
	}

}
